<?php
/**
 * 
 *
 * PHP version 5.3.x
 *
 * @category 
 * @package  
 * @author   gouki <gouki.xiao@gmail.com>
 */

/**
 * SaeXhprof.php
 *
 * @category 
 * @package  
 * @author   gouki <gouki.xiao@gmail.com>
 * @version $Id$ 
 * @created 2011-11-22 23:59
 */ 
class SaeXhprof {
    public function init(){
        $xhprof = SaeCommon::getSaeStorage('xhprof');
        if(!$xhprof){
            throw new CException(Yii::t('yiisae',"xhprof didnot initiliaze,please go sae project manage page,and add storage named :xhprof "));
        }
    }

    public function xhprofStart(){
        sae_xhprof_start();
    }

    public function xhprofEnd(){
        sae_xhprof_end();
    }
}
